﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RayD.Repository.Entites.SystemModule
{
    [Table("BASE_LOG")]
    public class LogEntity
    {
        #region 实体成员
        /// <summary>
        /// 日志主键
        /// </summary>
        /// <returns></returns>
        [Key]
        [Column("B_LOGID")]
        public string B_LogId { get; set; }
        /// <summary>
        /// 分类Id 0-操作1-异常
        /// </summary>
        /// <returns></returns>
        [Column("B_CATEGORYID")]
        public int? B_CategoryId { get; set; }
        /// <summary>
        /// 来源对象主键
        /// </summary>
        /// <returns></returns>
        [Column("B_SOURCEOBJECTID")]
        public string B_SourceObjectId { get; set; }
        /// <summary>
        /// 来源日志内容
        /// </summary>
        /// <returns></returns>
        [Column("B_SOURCECONTENTJSON")]
        public string B_SourceContentJson { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        /// <returns></returns>
        [Column("B_OPERATETIME")]
        public DateTime? B_OperateTime { get; set; }
        /// <summary>
        /// 操作用户Id
        /// </summary>
        /// <returns></returns>
        [Column("B_OPERATEUSERID")]
        public string B_OperateUserId { get; set; }
        /// <summary>
        /// 操作用户
        /// </summary>
        /// <returns></returns>
        [Column("B_OPERATEACCOUNT")]
        public string B_OperateAccount { get; set; }
        /// <summary>
        /// 操作模块
        /// </summary>
        /// <returns></returns>
        [Column("B_OPERATEMODULE")]
        public string B_OperateModule { get; set; }
        /// <summary>
        /// 请求方式
        /// </summary>
        /// <returns></returns>
        [Column("B_HTTPMETHOD")]
        public string B_HttpMethod { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        /// <returns></returns>
        [Column("B_IPADDRESS")]
        public string B_IPAddress { get; set; }
        /// <summary>
        /// 主机
        /// </summary>
        /// <returns></returns>
        [Column("B_HOST")]
        public string B_Host { get; set; }
        /// <summary>
        /// 浏览器
        /// </summary>
        /// <returns></returns>
        [Column("B_BROWSER")]
        public string B_Browser { get; set; }
        /// <summary>
        /// 执行结果状态
        /// </summary>
        /// <returns></returns>
        [Column("B_EXECUTERESULT")]
        public int? B_ExecuteResult { get; set; }
        /// <summary>
        /// 执行结果信息
        /// </summary>
        /// <returns></returns>
        [Column("B_EXECUTERESULTJSON")]
        public string B_ExecuteResultJson { get; set; }
        /// <summary>
        /// 执行地址
        /// </summary>
        [Column("B_EXECUTEADDRESS")]
        public string B_ExecuteAddress { get; set; }
        /// <summary>
        /// 执行参数
        /// </summary>
        [Column("B_EXECUTEARGUMENTS")]
        public string B_ExecuteArguments { get; set; }
        #endregion
    }
}
